﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="ES_Employees.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.ES_Employees" %>
<%@ Register src="../Controls/user.ascx" tagname="user" tagprefix="uc1" %>
<asp:Content ID="Content1" runat="server" contentplaceholderid="ContentPlaceHolder1">  

    <title>ประวัติบุคลากร</title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .multiPage
        {
            float:left;
            border:1px solid #94A7B5;
            background-color:#33CCCC;
            padding:2px;
            padding-left:0;
            width:750px;
            margin-left:0px;                
        }
        
        .multiPage div
        {
            border:1px solid #94A7B5;
            border-left:0;
            background-color:#ECE9D8;
        }
        
        .multiPage img
        {
            cursor:no-drop;
        }    
          
        .style21
        {
            height: 58px;
        }
        .style22
        {
            width: 161px;
        }
        </style>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">        
        <script type="text/javascript" src="../../Scripts/DatePicker.js"></script>
        <script type="text/javascript">
            function onTextChange(sender) {
                if (sender.get_value() == "") {
                    sender.set_text("");
                }
            }
            function onTabSelecting(sender, args) {
                if (args.get_tab().get_pageViewID()) {
                    args.get_tab().set_postBack(false);
                }
            }
            function openReport(rptName) {
                radopen("RPT_Exports.aspx?ReportName=" + rptName , "RadWindow1");
            }
            
        </script>        
    </telerik:RadCodeBlock>
    
    <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1">
     </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadTabStrip1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
                        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadMultiPage1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="cmdPrint">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="cmdPrint" LoadingPanelID="RadAjaxLoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="CrystalReportViewer1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="btnPrintReport">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="btnPrintReport" LoadingPanelID="RadAjaxLoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="CrystalReportViewer1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="cmbReportName">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="cmbReportName" LoadingPanelID="RadAjaxLoadingPanel1" />
                            <telerik:AjaxUpdatedControl ControlID="CrystalReportViewer1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
            <telerik:RadWindowManager ID="RadWindowManager2" runat="server">
            <Windows>
                <telerik:RadWindow 
                    id="RadWindow1" 
                    runat="server"        
                    showcontentduringload="false"
                    VisibleStatusbar="false"
                    AutoSize = "true"
                    title="รายงาน"      
                    Modal="true"
                    Skin = "Vista"
                    behaviors="Close">
                </telerik:RadWindow>
            </Windows>

            </telerik:RadWindowManager>        
<table width = "1000">
<tr>
<td>
    <uc1:user ID="user1" runat="server" />
</td>
<td width = "15px">
</td>
<td>     
<div class="moduleDivSlim700">
<div class="moduleDivBottom700">
<asp:panel ID="Panel1" runat="server" >
    <table width = "680px">       
    <tr>
    <td align="right" >รายงาน :</td>
    <td>
            <telerik:RadComboBox ID="cmbReportName" Runat="server" AutoPostBack="True" Width="100px">
        <Items>
            <telerik:RadComboBoxItem runat="server" Text="ประวัติบุคลากร" 
                Value="RPT_PS_EmployeeDtls" />
            <telerik:RadComboBoxItem runat="server" Text="สลิปเงินเดือน" 
                Value="RPT_PS_PayrollSlips" />
        </Items>
        </telerik:RadComboBox>
        </td>
    
    <td align = "left">
        &nbsp;</td>
    <td>
        <telerik:RadComboBox ID="cmbYear" runat="server" 
            CausesValidation="false" DataTextField="Name" DataValueField="Name" 
            Filter="Contains" OnClientTextChange="onTextChange" Width="100px">
        </telerik:RadComboBox>
    </td>
    <td align = "right">                
        <telerik:RadComboBox ID="cmbMonth" Runat="server" Width="100px">
            <Items>
                <telerik:RadComboBoxItem runat="server" Text="มกราคม" Value="1" />
                <telerik:RadComboBoxItem runat="server" Text="กุมภาพันธ์" Value="2" />
                <telerik:RadComboBoxItem runat="server" Text="มีนาคม" Value="3" />
                <telerik:RadComboBoxItem runat="server" Text="เมษายน" Value="4" />
                <telerik:RadComboBoxItem runat="server" Text="พฤษภาคม" Value="5" />
                <telerik:RadComboBoxItem runat="server" Text="มิถุนายน" Value="6" />
                <telerik:RadComboBoxItem runat="server" Text="กรกฎาคม" Value="7" />
                <telerik:RadComboBoxItem runat="server" Text="สิงหาคม" Value="8" />
                <telerik:RadComboBoxItem runat="server" Text="กันยายน" Value="9" />
                <telerik:RadComboBoxItem runat="server" Text="ตุลาคม" Value="10" />
                <telerik:RadComboBoxItem runat="server" Text="พฤศจิกายน" Value="11" />
                <telerik:RadComboBoxItem runat="server" Text="ธันวาคม" Value="12" />
            </Items>
        </telerik:RadComboBox>
    </td>   
    <td>
        <asp:LinkButton ID="cmdPrint" runat="server" CausesValidation="False" OnClick="cmdPrint_Click">
            <img alt="" src="../Images/Buttons/Print1.gif" 
            style="border: 0px; vertical-align: middle;" />พิมพ์รายงาน
        </asp:LinkButton>
    </td> 
    </tr>
    </table>
</asp:panel>
</div>
</div>
</td>
</tr>
</table>
           
<div class="moduleDivSlim1000x450">
<div class="moduleDivBottom1000">
<asp:panel ID="Panel6" runat="server" Width = "600px" >
    <table>       
    <tr>
    <td class="style21">                
    <table>
    <tr>
    <td valign = "top" align="left">    
        <telerik:RadTabStrip OnClientTabSelecting="onTabSelecting" 
            ID="RadTabStrip1" SelectedIndex="0" 
            runat="server" MultiPageID="RadMultiPage1" 
            Skin="Web20" 
            OnTabClick="RadTabStrip1_TabClick" 
            Orientation="VerticalLeft">
        </telerik:RadTabStrip>   
     </td>
     <td>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server"  
        SelectedIndex="0" 
        OnPageViewCreated="RadMultiPage1_PageViewCreated" Width="750px">
    </telerik:RadMultiPage>
    </td>
    </tr>
    </table>       
        
    </td>    
    </tr>
    </table>
</asp:panel>
</div>
</div>
    
</asp:Content>